﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Invocation Register Test Harness</title>
    <script type="text/javascript">
        function ValidateButtons()
        {
            EnableElement("msgType9023", "radServiceType9023")
            EnableElement("msgType9025","radServiceType9025")
            btn = document.getElementById("btnSubmit")
            btn.disabled = false;
        }
        
        function EnableElement(divtag, radtag)
        {
            divElement = document.getElementById(divtag)
            radElement = document.getElementById(radtag)
            boolShow = radElement.checked
            if (boolShow)
            {
                hidElement = document.getElementById("hidMessageType");
                hidElement.value = radElement.value;
                divElement.style.display = ""
            }
            else
                divElement.style.display = "none"
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <p>Select one message to generate:<br />
        <br />
        <input type="radio" id="radServiceType9023" name="radServiceType" value="9023" onclick="ValidateButtons()"/>Sample 1 Message Type<br />
        <input type="radio" id="radServiceType9025" name="radServiceType" value="9025" onclick="ValidateButtons()"/>Sample 2 Message Type</p>
    </div>
    <div id="msgType9023" style="display:none">
    <table>
        <tr>
            <td>First Name:</td>
            <td><asp:TextBox ID="txtFirstName" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Last Name:</td>
            <td><asp:TextBox ID="txtLastName" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>NHI:</td>
            <td><asp:TextBox ID="txtNHI" runat="server"></asp:TextBox></td>
        </tr>                
    </table>        
    </div>
    <div id="msgType9025" style="display:none">
    <table>
        <tr>
            <td>Patient ID:</td>
            <td><asp:TextBox ID="txtPatientID" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>Practicioner ID:</td>
            <td><asp:TextBox ID="txtPracticionerID" runat="server"></asp:TextBox></td>
        </tr>
        <tr>
            <td>TestGroup:</td>
            <td><asp:TextBox ID="txtLabTestType" runat="server"></asp:TextBox></td>
        </tr>        
    </table>
    </div>
        <asp:HiddenField ID="hidMessageType" runat="server" />
        <asp:Button ID="btnSubmit" enabled="false" runat="server" Text="Submit" /><br />
        <asp:Literal ID="litInvocationURL" runat="server"></asp:Literal>
    </form>
</body>
</html>
